package org.appfuse.tutorial.dao.hibernate;

import java.util.List;

import org.appfuse.dao.hibernate.GenericDaoHibernate;
import org.appfuse.tutorial.dao.PersonDao;
import org.appfuse.tutorial.model.Person;

@SuppressWarnings("unchecked")
public class PersonDaoHibernate extends GenericDaoHibernate implements PersonDao {
	public PersonDaoHibernate() { 
        super(Person.class); 
    } 
 
    public List<Person> findByLastName(String lastName) { 
        return getHibernateTemplate().find("from org.appfuse.tutorial.model.Person where lastName=?", lastName); 
    }
}
